package com.oig.base.api.fallback;

import com.oig.base.api.PortService;
import com.oig.sys.base.dto.PortDto;
import com.oig.sys.base.vo.PortVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class PortServiceFallBackImpl implements PortService {

    @Setter
    private Throwable cause;


    @Override
    public PortVo getByName(String name) {
        log.error("feign getByName error ", cause);
        return null;
    }

    @Override
    public PortVo getByOldCode(String oldCode) {
        log.error("feign getByOldCode error ", cause);
        return null;
    }

    @Override
    public PortVo getByCode(String code) {
        log.error("feign getByCode error ", cause);
        return null;
    }

    @Override
    public PortVo updatePort(PortDto portDto) {
        log.error("feign updatePort error ", cause);
        return null;
    }


}
